package com.nantian.generator;

import com.nantian.generator.enumeration.GeneratorEnum;
import com.nantian.generator.impl.MybatisGenerator;

/**
 * <p>ClassName: GeneratorFactory</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright©2014</p>
 * <p>Company: 广州南天电脑系统有限公司</p>
 * <p>Date: 2019-07-20</p>
 *
 * @author 刘晓辉
 * @version 1.0
 */
public class GeneratorFactory {


    public static Generator buildFactory(GeneratorEnum generatorEnum) {
        Generator generator = null;
        switch (generatorEnum) {
            case MYBATIS_GENERATOR:
                generator = new MybatisGenerator();
                break;
            default:
                break;
        }
        return generator;
    }

}
